#ifndef __StateParser__
#define __StateParser__

#include "game_object.h"
#include "tinyxml/tinyxml.h"
#include <string>
#include <vector>

class StateParser
{
public:
    
    StateParser() {}
    ~StateParser() {}
    
    bool parseState(const char* stateFile, std::string stateID, std::vector<GameObject*> *pObjects, std::vector<std::string> *pTextureIDs);
    
private:
    
    void parseObjects(TiXmlElement* pStateRoot, std::vector<GameObject*> *pObjects);
    void parseTextures(TiXmlElement* pStateRoot, std::vector<std::string> *pTextureIDs);
};

#endif /* defined(__StateParser__) */